﻿using Pets.Concrete;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pets.Abstract
{

    ///<summary>
    /// Interface for serializers
    ///</summary> 
   public interface ISerializer
    {
        ///<summary>
        ///Download from file
        ///</summary>
       List<T> Load<T>(string filename) where T: class, new();

       ///<summary>
       /// Save to file
       ///</summary>
       void Save<T>(string filename, List<T> data) where T: class, new();
    }
}
